﻿@page
@{ Layout = "_LayoutHome"; }


<el-card>
    <el-scrollbar class="scrollbar" :style="{ height: ($(window).height()-63) + 'px' }">
        <el-card>
            <div style="margin-right:18px;">
                <el-form v-on:submit.native.prevent ref="form" :model="form" status-icon label-width="140px">
                    <el-form-item label="账号">
                        {{ user.userName }}
                    </el-form-item>
                    <el-form-item label="密码" prop="password" :rules="[{ required: true, message: '请输入密码' }]">
                        <el-input v-model="form.password" type="password" name="password" autocomplete="off"></el-input>
                    </el-form-item>
                    <el-form-item label="确认密码" prop="confirmPassword" :rules="[{ required: true, message: '请输入确认密码' }, { validator: validatePass }]">
                        <el-input v-model="form.confirmPassword" type="password" name="confirmPassword" autocomplete="off"></el-input>
                    </el-form-item>
                    <el-form-item>
                        <el-divider></el-divider>
                    </el-form-item>
                    <el-form-item>
                        <el-button icon="el-icon-check" type="primary" v-on:click="btnSubmitClick">保 存</el-button>
                        <el-button type="primary" plain icon="el-icon-back" v-on:click="btnTopMenuClick('index')">返 回</el-button>
                    </el-form-item>
                </el-form>
            </div>
        </el-card>
    </el-scrollbar>
</el-card>


@section Scripts{
<script src="/sitefiles/assets/js/home/password.js" type="text/javascript"></script> }